/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 订单细分维护(OEM)

// 数据查询GET /fiOrderTypeSub/searchFiOrderTypeSubDTOList
export const queryList = (params) => axios.get(`${SERVER.WHOLESALES}/fiOrderTypeSub/searchFiOrderTypeSubDTOList`, {
  params
})

// 新增数据 /fiOrderTypeSub/addFiOrderTypeSubDTO
export const addFiOrderType = (params) => axios.post(`${SERVER.WHOLESALES}/fiOrderTypeSub/addFiOrderTypeSubDTO`, params)

// 修改数据 /fiOrderTypeSub/updateFiOrderTypeSubDTO
export const updateFiOrderType = (params) => axios.post(`${SERVER.WHOLESALES}/fiOrderTypeSub/updateFiOrderTypeSubDTO`, params)

// 查询详情get fiOrderTypeSub/getFiOrderTypeSubDTOById
export const getFiOrderType = (param) => axios.get(`${SERVER.WHOLESALES}/fiOrderTypeSub/getFiOrderTypeSubDTOById`, {
  param
})
